import {
	request
} from './request'
import qs from 'qs'


export function addHealthVideo(orderObj) {
	return request({
		url: `forum/addVideo`,
		method: 'post',
		data: orderObj,
		headers: { 'Content-Type': 'multipart/form-data' }
	})
}

//获取视频列表
export function getHealthVideo(orderObj) {
	return request({
		url: `forum/listVideo`,
		method: 'post',
		data: qs.stringify(orderObj)
	})
}

//视频上线  下线  置顶
export function updateHealthVideo(orderObj) {
	return request({
		url: `forum/updateVideoStatus`,
		method: 'post',
		data: qs.stringify(orderObj)
	})
}
//删除视频
export function deleteHealthVideo(orderObj) {
	return request({
		url: `forum/delVideo`,
		method: 'post',
		data: qs.stringify(orderObj)
	})
}

// 获取视频分类列表
export function getHealthVideoCate(orderObj) {
	return request({
		url: `forum/listVideoCate`,
		method: 'post',
		data: qs.stringify(orderObj)
	})
}
// 添加视频分类
export function addHealthVideoCate(orderObj) {
	return request({
		url: `forum/addVideoCate`,
		method: 'post',
		data: qs.stringify(orderObj)
	})
}

// 上下线  删除
export function updateHealthVideoCate(orderObj) {
	return request({
		url: `forum/updateVideoCate`,
		method: 'post',
		data: qs.stringify(orderObj)
	})
}

// 修改视频信息
export function editHealthVideo(orderObj) {
	return request({
		url: `forum/updateVideo`,
		method: 'post',
		data: qs.stringify(orderObj)
	})
}

export function getHealthVideoExam(orderObj) {
	return request({
		url: 'active/getHealthVideoExam',
		method: 'post',
		data: qs.stringify(orderObj)
	})
}

export function updateHealthVideoExam(orderObj) {
	return request({
		url: 'active/updateHealthVideoExam',
		method: 'post',
		data: qs.stringify(orderObj)
	})
}